package com.yh.modules.data.service;


import com.baomidou.mybatisplus.service.IService;
import com.yh.common.utils.PageUtils;
import com.yh.modules.data.entity.JqGridEntity;
import com.yh.modules.data.entity.MachineDataEntity;
import com.yh.modules.data.entity.MachineDataWorkCountQueryForm;

import java.util.List;
import java.util.Map;

/**
 * 机器检测数据
 *
 */
public interface MachineDataService extends IService<MachineDataEntity> {

    PageUtils getMachineDataList(Map<String, Object> params);

	Map<String, Object>  getMachineDataAnalyze(Map<String, Object> params);

	List<Map<String, Object>> getMachineDataCheck(Map<String, Object> params);

	JqGridEntity getColNamesAndModel(Integer machineId);


	JqGridEntity getAnalyzeColNamesAndModel(Integer machineId);


	//删除一周前的数据
	void deleteDataFromAWeekAge();

	//获取机器每半小时的工作次数
    void getMachineWorkCount(MachineDataWorkCountQueryForm form);

	Map<String, Object> getMachineDataStatistics(Map<String, Object> params);
	JqGridEntity getStatisticsColNamesAndModel(Integer machineId);
}

